import type { GoodsResult } from '@/types/goods'
import { http } from '@/utils/http'
/**
 * 获取商品详情的接口方法
 * @param id 商品id
 */
export const getGoodsInfoAPI = (id: string) =>
  http.get<GoodsResult>('/goods', { id: id })
